﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace ConsoleApplication7
{
    class Mozilla_firefox : XMLConfig
    {
        Mozilla_firefox(String cfgFile)
            : base(cfgFile)
        {
        }
        public class items : Element
        {
            public items(XmlElement elem)
                : base(elem)
            {
            }

            /// <summary>
            /// items name
            /// </summary>
            public String Path
            {
                get {
                    string[] sp = System.IO.Directory.GetDirectories(GetAttribute("path"));
                    if (sp==null&& sp.Length==0)
                    {
                        return GetAttribute("path");
                    }
                    return sp[0];
                }
            }

        }
    }
}
